﻿// Decompiled with JetBrains decompiler
// Type: Netick.PendingConnection
// Assembly: Netick, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 6726ECA1-C773-4CF7-8952-E81B30D93B52
// Assembly location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.dll
// XML documentation location: D:\WorkSpaceDemo\UPM\NetickForUnity\Netick\Runtime\Netick.xml

using System;

#nullable disable
namespace Netick;

internal struct PendingConnection : IEquatable<PendingConnection>
{
  public IEndPoint Address;
  public double LastConnectionAttemptTime;

  public bool Equals(PendingConnection other)
  {
    return this.Address.IPAddress == other.Address.IPAddress && this.Address.Port == other.Address.Port;
  }

  public override bool Equals(object obj) => obj is PendingConnection other && this.Equals(other);

  public override int GetHashCode()
  {
    return (17 * 31 /*0x1F*/ + this.Address.IPAddress.GetHashCode()) * 31 /*0x1F*/ + this.Address.Port.GetHashCode();
  }
}
